package com.enen.controller.utils;

import com.enen.domain.Old;
import lombok.Data;

import java.awt.print.Book;
import java.util.List;

@Data
public class R {
    private boolean flag;
    private Object data;
    private String msg;

    public R(List<Old> list) {
    }

    public R(boolean flag) {
        this.flag = flag;
    }

    public R(boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }
    public R(boolean flag,String msg){
        this.flag = flag;
        this.msg = msg;
    }
    public R(boolean flag,Object data,String msg){
        this.flag = flag;
        this.msg = msg;
        this.data = data;
    }
    public R(String msg) {
        this.msg = msg;
    }
}